/**
 * Created with Intellij IDEA.
 * Description:
 * User: wangj
 * Date: 2022-02-18
 * Time: 8:38
 */
public class TestDemo {
    public static void printFib(int a,int b){
        int tmp=0;
        for (int i = 0; i < 15; i++) {
            int ret=a+b;
            tmp=b;
            System.out.print(ret+" ");
            b=ret;
            a=tmp;
        }
    }
    public static void main(String[] args) {
        int a=0;int b=1;
        printFib(a,b);
    }
}
